package com.liang.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: XIAOLIANG
 * Date: 2021/5/24
 * Time: 16:50
 * Description: No Description
 */
@RestController

@RequestMapping("/product")
public class TestController {

//    @Value("server.port")
//   private Integer port;


    @RequestMapping("/{id}")
    public Map getProduct(@PathVariable("id") Integer id){


        HashMap<Object, Object> hashMap = new HashMap<>();

        hashMap.put("id",id);

        hashMap.put("post",8820);

        return hashMap;

    }



}
